package almacenes.modelo.entidad;
// Generated 16/02/2012 04:45:02 PM by Hibernate Tools 3.4.0.CR1


import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * ParametroCab generated by hbm2java
 */
@Entity
@Table(name="PARAMETRO_CAB"
    , uniqueConstraints = @UniqueConstraint(columnNames="COD_PARAM_CAB_BBVA") 
)
public class ParametroCab  implements java.io.Serializable {


     private int idParamCab;
     private String codParamCabBbva;
     private String abrevParamCab;
     private String descParamCab;
     private Boolean flgEditable;
     private String usuReg;
     private Date fecReg;
     private String usuAct;
     private Date fecAct;
     private Byte idEstadoMae;
     private Set<ParametroDet> parametroDets = new HashSet(0);

    public ParametroCab() {
    }

	
    public ParametroCab(int idParamCab) {
        this.idParamCab = idParamCab;
    }
    public ParametroCab(int idParamCab, String codParamCabBbva, String abrevParamCab, String descParamCab, Boolean flgEditable, String usuReg, Date fecReg, String usuAct, Date fecAct, Byte idEstadoMae, Set<ParametroDet> parametroDets) {
       this.idParamCab = idParamCab;
       this.codParamCabBbva = codParamCabBbva;
       this.abrevParamCab = abrevParamCab;
       this.descParamCab = descParamCab;
       this.flgEditable = flgEditable;
       this.usuReg = usuReg;
       this.fecReg = fecReg;
       this.usuAct = usuAct;
       this.fecAct = fecAct;
       this.idEstadoMae = idEstadoMae;
       this.parametroDets = parametroDets;
    }
   
     @Id 

    
    @Column(name="ID_PARAM_CAB", unique=true, nullable=false, precision=6, scale=0)
    public int getIdParamCab() {
        return this.idParamCab;
    }
    
    public void setIdParamCab(int idParamCab) {
        this.idParamCab = idParamCab;
    }

    
    @Column(name="COD_PARAM_CAB_BBVA", unique=true, length=6)
    public String getCodParamCabBbva() {
        return this.codParamCabBbva;
    }
    
    public void setCodParamCabBbva(String codParamCabBbva) {
        this.codParamCabBbva = codParamCabBbva;
    }

    
    @Column(name="ABREV_PARAM_CAB", length=100)
    public String getAbrevParamCab() {
        return this.abrevParamCab;
    }
    
    public void setAbrevParamCab(String abrevParamCab) {
        this.abrevParamCab = abrevParamCab;
    }

    
    @Column(name="DESC_PARAM_CAB", length=200)
    public String getDescParamCab() {
        return this.descParamCab;
    }
    
    public void setDescParamCab(String descParamCab) {
        this.descParamCab = descParamCab;
    }

    
    @Column(name="FLG_EDITABLE", precision=1, scale=0)
    public Boolean getFlgEditable() {
        return this.flgEditable;
    }
    
    public void setFlgEditable(Boolean flgEditable) {
        this.flgEditable = flgEditable;
    }

    
    @Column(name="USU_REG", length=10)
    public String getUsuReg() {
        return this.usuReg;
    }
    
    public void setUsuReg(String usuReg) {
        this.usuReg = usuReg;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="FEC_REG", length=7)
    public Date getFecReg() {
        return this.fecReg;
    }
    
    public void setFecReg(Date fecReg) {
        this.fecReg = fecReg;
    }

    
    @Column(name="USU_ACT", length=10)
    public String getUsuAct() {
        return this.usuAct;
    }
    
    public void setUsuAct(String usuAct) {
        this.usuAct = usuAct;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="FEC_ACT", length=7)
    public Date getFecAct() {
        return this.fecAct;
    }
    
    public void setFecAct(Date fecAct) {
        this.fecAct = fecAct;
    }

    
    @Column(name="ID_ESTADO_MAE", precision=2, scale=0)
    public Byte getIdEstadoMae() {
        return this.idEstadoMae;
    }
    
    public void setIdEstadoMae(Byte idEstadoMae) {
        this.idEstadoMae = idEstadoMae;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="parametroCab")
    public Set<ParametroDet> getParametroDets() {
        return this.parametroDets;
    }
    
    public void setParametroDets(Set<ParametroDet> parametroDets) {
        this.parametroDets = parametroDets;
    }




}


